package com.ziroom.crm.rock.spring.support;

import com.ziroom.crm.rock.spring.config.MqSpringConfig;
import com.ziroom.crm.rock.spring.init.ReliableMqInit;
import lombok.AllArgsConstructor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * <p></p>
 * <p>
 * <PRE>
 * <BR>    修改记录
 * <BR>-----------------------------------------------
 * <BR>    修改日期         修改人          修改内容
 * </PRE>
 *
 * @author WeiShaoying
 * @version 1.0
 * @date Created in 2020年09月07日 15:58
 * @since 1.0
 */
@EnableConfigurationProperties(MqSpringConfig.class)
@AllArgsConstructor
public class ReliableMqAutoConfiguration {

    private final MqSpringConfig mqSpringConfig;

    @Bean
    public ReliableMqInit reliableMqInit() {
        return new ReliableMqInit();
    }
}
